﻿config.eventcfg = {				send: function() {			var keyid = this.getPkField().getValue();			if (keyid == null || keyid.length == 0) {				JxHint.alert(jx.event.nosave);				return;			}						var self = this;			var hdcall = function() {				//回调函数				var endcall = function(data) {					var g = self.form.myGrid;					if (g) g.getStore().reload();									var win = self.page.ownerCt;					if (win.getXType() == 'window') {						win.close();					}				};							//设置请求的参数				var params = 'funid='+ self.define.nodeid +'&keyid=' + keyid;				params += JxUtil.getFormValues(self.form);				params += '&pagetype=form&eventcode=send';				//发送请求				Request.postRequest(params, endcall);			};			//'确定发送消息吗？'			Ext.Msg.confirm(jx.base.hint, jx.sys.sendyes, function(btn) {				if (btn == "yes") hdcall();			});		}			};